Skip to content

refactor: utils #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open

refactor: utils #44

wants to merge 69 commits into from

Conversation

Paillat-dev
Copy link
Member

The general goal of these changes is to lower the amount of code we have to maintain across te library.

Changes include:

Separated utils function in:

  • utils.private for private utils that are to be used in the library code
  • utils for user facing utils

Removed over specific utils

Removed overly specific public utils that wouldn't commonly be used by users and aren't hard to re implement in any project. See CHANGELOG-V3.md for a comprehensive list.

Removed unused (or lesser used) utils

Remove utils that were used less than once or twice in the library in favor of:

  • Moving them to a specific file if they were specific to a part of the library and shouldn't have been in utils in the first place
  • For utils that implemented a one-liner, replace the util's usage with said one liner
  • For utils similar to other utils, use another util

Merged overlapping utils

Merge utils with common goals or with same goal with one another, e.g. see changes to utils.time_snowflake -> utils.generate_snowflake

Paillat-dev and others added 30 commits May 29, 2025 20:25
* Start migration to uv

* Setup ruff and hatch

* Change pre-commit to use ruff

* Format with ruff

* Fix mistake

* Add dev deps

* Change workflows to use uv and ruff

* ➕ Add colorlog and remove requirements folder and fix build

* 💚 Fix sphinx build ?

* 🐛 Add __version.py for version management and update import in __init__.py

* ✏️ Update lib-checks.yml to run ruff on ubuntu-latest

* 🐛 Update lib-checks.yml to run mypy with uv

* 🔥 Delete MANIFEST.in

* ✨ Enhance lib-checks.yml to include ruff formatter check

* ♻️ Refactor pyproject.toml and uv.lock to use optional-dependencies for voice and speed
* chore: Update localization workflows to use 'uv' for dependency management

* chore: refactor Read the Docs configuration to use uv
It was used twice, and once it wasn't even necessary
Copy link

@Lumabots Lumabots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of them are typing mistakes/missings, just make sure for the iterable and the template import

@Paillat-dev
Copy link
Member Author

I am going to close some of these comments although pertinent because this PR aims at moving code and not changing its typing.

@Lumabots
Copy link

Lumabots commented Aug 4, 2025

I am going to close some of these comments although pertinent because this PR aims at moving code and not changing its typing.

both could be done at the same time ig, but else when this get merged i'll make a pr fixing the typing mistake

@Paillat-dev
Copy link
Member Author

@Lumabots I am going to take all of your propositions here and make them in another or once this one is merger, just feel like this is a lot already

Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
@Paillat-dev Paillat-dev requested review from Lumabots and a team August 4, 2025 11:56
Co-authored-by: Ice Wolfy <[email protected]>
Signed-off-by: Paillat <[email protected]>
Paillat-dev and others added 6 commits August 7, 2025 00:53
@Paillat-dev Paillat-dev requested a review from Icebluewolf August 6, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants